{extend name="layout_modal" /}
{block name="content"}
<section class="content" style="padding-top:0;padding-bottom: 0">
    <div class="row" style="padding-bottom: 0">
        <div class="box" style="margin-bottom: 0">
            <div class="box-body">
                <form role="form" action="{:url('set_coupons')}">
                    <table class="layui-table" lay-even>
                        <colgroup>
                            <col width="35">
                            <col width="30">
                        </colgroup>
                        <thead>
                            <tr>
                                <th></th>
                                <th>ID</th>
                                <th>优惠券名称</th>
                                <th>优惠券分类</th>
                                <th>价格(折扣)</th>
                            </tr>
                        </thead>
                        <tbody>
                            {volist name="lists" id="v"}
                            <tr>
                                <td><input type="radio" value="{$v.id}" name="check_id" class="coupons_check"> </td> 
                                <td>{$v.id}</td>
                                <td>{$v.name}</td>
                                <td>{$v.type}</td>
                                <td>{$v.price}</td>
                            </tr>
                            {/volist}
                        </tbody>
                    </table>
                    <input type="hidden" name="id" value="{$userid}">
                </form>
            </div>
        </div>
    </div>
</section>
{/block}
{block name="script"}

{/block}